
export type Planet = {
  name: string
  climate: string
  diameter: string
  gravity: string
  orbital_period: string
  population: string
  residents: string[]
  rotation_period: string
  surface_water: string
  terrain: string
  url: string
};

export type PageData<T> = {
  count: number | null;
  next: string;
  previous: number | null;
  results: T[]
};

export type PlanetPages = PageData<Planet>;

export type Person = {
  name: string,
  gender: string,
  birth_year: string,
  height: string
}

export type PeoplePage = PageData<Person>